package tw.asap.plus.network.service;

import java.util.List;

import retrofit.http.Body;
import retrofit.http.POST;
import tw.asap.plus.entity.request.CommonRequestParams;
import tw.asap.plus.entity.request.OrderCreateResult;
import tw.asap.plus.entity.request.OrderDetailRequest;
import tw.asap.plus.entity.response.OrderCreate;
import tw.asap.plus.entity.response.OrderCreated;
import tw.asap.plus.entity.response.OrderDetail;
import tw.asap.plus.entity.response.ResponseDataWrapper;

/**
 * Created by Yax.
 * Date: 15/11/14
 * Time: 上午1:39
 * Description:
 */
public interface OrderService {

    @POST("/app/order/create")
    ResponseDataWrapper<OrderCreateResult> createOrder(@Body OrderCreate orderCreate);

    @POST("/app/order/list")
    ResponseDataWrapper<List<OrderCreated>> getCreatedOrders(@Body CommonRequestParams requestParams);

    @POST("/app/order/detail")
    ResponseDataWrapper<OrderDetail> getOrderDetail(@Body OrderDetailRequest orderDetailRequest);

    @POST("/app/order/cancel")
    ResponseDataWrapper cancelOrder(@Body OrderDetailRequest orderDetailRequest);

    @POST("/app/order/reminder")
    ResponseDataWrapper reminderOrder(@Body OrderDetailRequest orderDetailRequest);
}
